package com.woniuxy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

@Document(indexName = "product")
@Data
@AllArgsConstructor
public class ProductElasticsearchDemo {

    @Field(type = FieldType.Date,format = DateFormat.date_hour_minute_second)
    private Date pStarttime;

    private String rName;

    private String mName;

    private String mTimelength;

    private String pStatus;

    private Double pPrice;
}
